CREATE PROC [dbo].[P_WriteDD2] 
AS
declare @id int=0;
while exists(select 1 from DD_User with(nolock) where du_id>@id)
begin
	select top 1 @id=du_id from DD_User with(nolock) where du_id>@id order by du_id;
	exec PD_DealDD @id;
end;

GO


